package com.google.code.sip.ucenter.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.google.code.sip.ucenter.dao.RoleDao;
import com.google.code.sip.ucenter.model.Role;
import com.google.code.sip.ucenter.service.RoleManager;

@Service("roleManager")
public class RoleManagerImpl implements RoleManager {

	@Autowired
	private RoleDao roleDao;

	@Override
	public Role getRoleByName(String name) {

		return roleDao.getByName(name);
	}

}
